﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CE1 RID: 3297
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PickRogueAvatarCsReq : IMessage<PickRogueAvatarCsReq>, IMessage, IEquatable<PickRogueAvatarCsReq>, IDeepCloneable<PickRogueAvatarCsReq>, IBufferMessage
	{
		// Token: 0x17002983 RID: 10627
		// (get) Token: 0x06009354 RID: 37716 RVA: 0x00187591 File Offset: 0x00185791
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PickRogueAvatarCsReq> Parser
		{
			get
			{
				return PickRogueAvatarCsReq._parser;
			}
		}

		// Token: 0x17002984 RID: 10628
		// (get) Token: 0x06009355 RID: 37717 RVA: 0x00187598 File Offset: 0x00185798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PickRogueAvatarCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002985 RID: 10629
		// (get) Token: 0x06009356 RID: 37718 RVA: 0x001875AA File Offset: 0x001857AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PickRogueAvatarCsReq.Descriptor;
			}
		}

		// Token: 0x06009357 RID: 37719 RVA: 0x001875B1 File Offset: 0x001857B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PickRogueAvatarCsReq()
		{
		}

		// Token: 0x06009358 RID: 37720 RVA: 0x001875D0 File Offset: 0x001857D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PickRogueAvatarCsReq(PickRogueAvatarCsReq other) : this()
		{
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this.propEntityId_ = other.propEntityId_;
			this.trialAvatarIdList_ = other.trialAvatarIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009359 RID: 37721 RVA: 0x00187622 File Offset: 0x00185822
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PickRogueAvatarCsReq Clone()
		{
			return new PickRogueAvatarCsReq(this);
		}

		// Token: 0x17002986 RID: 10630
		// (get) Token: 0x0600935A RID: 37722 RVA: 0x0018762A File Offset: 0x0018582A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x17002987 RID: 10631
		// (get) Token: 0x0600935B RID: 37723 RVA: 0x00187632 File Offset: 0x00185832
		// (set) Token: 0x0600935C RID: 37724 RVA: 0x0018763A File Offset: 0x0018583A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PropEntityId
		{
			get
			{
				return this.propEntityId_;
			}
			set
			{
				this.propEntityId_ = value;
			}
		}

		// Token: 0x17002988 RID: 10632
		// (get) Token: 0x0600935D RID: 37725 RVA: 0x00187643 File Offset: 0x00185843
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TrialAvatarIdList
		{
			get
			{
				return this.trialAvatarIdList_;
			}
		}

		// Token: 0x0600935E RID: 37726 RVA: 0x0018764B File Offset: 0x0018584B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PickRogueAvatarCsReq);
		}

		// Token: 0x0600935F RID: 37727 RVA: 0x0018765C File Offset: 0x0018585C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PickRogueAvatarCsReq other)
		{
			return other != null && (other == this || (this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && this.PropEntityId == other.PropEntityId && this.trialAvatarIdList_.Equals(other.trialAvatarIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009360 RID: 37728 RVA: 0x001876C0 File Offset: 0x001858C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this.PropEntityId != 0U)
			{
				num ^= this.PropEntityId.GetHashCode();
			}
			num ^= this.trialAvatarIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009361 RID: 37729 RVA: 0x0018771B File Offset: 0x0018591B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009362 RID: 37730 RVA: 0x00187723 File Offset: 0x00185923
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009363 RID: 37731 RVA: 0x0018772C File Offset: 0x0018592C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.trialAvatarIdList_.WriteTo(ref output, PickRogueAvatarCsReq._repeated_trialAvatarIdList_codec);
			if (this.PropEntityId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.PropEntityId);
			}
			this.baseAvatarIdList_.WriteTo(ref output, PickRogueAvatarCsReq._repeated_baseAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009364 RID: 37732 RVA: 0x0018778C File Offset: 0x0018598C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.baseAvatarIdList_.CalculateSize(PickRogueAvatarCsReq._repeated_baseAvatarIdList_codec);
			if (this.PropEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PropEntityId);
			}
			num += this.trialAvatarIdList_.CalculateSize(PickRogueAvatarCsReq._repeated_trialAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009365 RID: 37733 RVA: 0x001877F0 File Offset: 0x001859F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PickRogueAvatarCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			if (other.PropEntityId != 0U)
			{
				this.PropEntityId = other.PropEntityId;
			}
			this.trialAvatarIdList_.Add(other.trialAvatarIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009366 RID: 37734 RVA: 0x0018784E File Offset: 0x00185A4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009367 RID: 37735 RVA: 0x00187858 File Offset: 0x00185A58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 90U)
				{
					if (num == 88U || num == 90U)
					{
						this.trialAvatarIdList_.AddEntriesFrom(ref input, PickRogueAvatarCsReq._repeated_trialAvatarIdList_codec);
						continue;
					}
				}
				else
				{
					if (num == 112U)
					{
						this.PropEntityId = input.ReadUInt32();
						continue;
					}
					if (num == 120U || num == 122U)
					{
						this.baseAvatarIdList_.AddEntriesFrom(ref input, PickRogueAvatarCsReq._repeated_baseAvatarIdList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003836 RID: 14390
		private static readonly MessageParser<PickRogueAvatarCsReq> _parser = new MessageParser<PickRogueAvatarCsReq>(() => new PickRogueAvatarCsReq());

		// Token: 0x04003837 RID: 14391
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003838 RID: 14392
		public const int BaseAvatarIdListFieldNumber = 15;

		// Token: 0x04003839 RID: 14393
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x0400383A RID: 14394
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x0400383B RID: 14395
		public const int PropEntityIdFieldNumber = 14;

		// Token: 0x0400383C RID: 14396
		private uint propEntityId_;

		// Token: 0x0400383D RID: 14397
		public const int TrialAvatarIdListFieldNumber = 11;

		// Token: 0x0400383E RID: 14398
		private static readonly FieldCodec<uint> _repeated_trialAvatarIdList_codec = FieldCodec.ForUInt32(90U);

		// Token: 0x0400383F RID: 14399
		private readonly RepeatedField<uint> trialAvatarIdList_ = new RepeatedField<uint>();
	}
}
